package com.meilai.project.mapper.payment;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.meilai.project.entity.finance.payment.PaymentWriteOffApply;
import com.meilai.project.vo.finance.payment.PaymentApplyVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 付款单 Mapper 接口
 * </p>
 *
 * @author xchen
 * @since 2022-02-12
 */
@Mapper
public interface PaymentWriteOffApplyMapper extends BaseMapper<PaymentWriteOffApply> {
    @Select("select * from payment_write_off_apply where payment_id = #{payment_id} and deleted_at is null")
    PaymentWriteOffApply getByPaymentId(@Param("payment_id") Long paymentId);

    PaymentApplyVO getOneById(@Param("id") Long paymentWriteOffId);
}
